Skip to content

Expand Section 6.4 entry in the PER-CS 2.0 to 3.0 migration guide#147

Merged
Crell merged 1 commit into
php-fig:masterfrom
rodrigoprimo:add-ternary-rule-to-section-6.4-in-migration-guide-3.0
Jun 22, 2026
Merged

Expand Section 6.4 entry in the PER-CS 2.0 to 3.0 migration guide#147
Crell merged 1 commit into
php-fig:masterfrom
rodrigoprimo:add-ternary-rule-to-section-6.4-in-migration-guide-3.0

Conversation

@rodrigoprimo

Copy link
Copy Markdown
Contributor

Section 6.4 is new in 3.0. It states:

A statement that includes an operator MAY be split across multiple lines, where each subsequent line is indented once. When doing so, the operator MUST be placed at the beginning of the new line; ternaries MUST occupy 3 lines, never 2.

The migration guide already has a Section 6.4 entry covering the general operator-at-start rule, but it does not state the ternary-specific 3-lines constraint.

Section 6.4 was introduced by #93. This PR appends the missing ternary constraint to the existing entry.

Section 6.4 is new in 3.0. Among its rules, ternaries MUST occupy 3
lines, never 2.

The migration guide already has a Section 6.4 entry covering the
general operator-at-start rule, but it omits the ternary-specific
constraint. This commit appends the missing sentence to that entry.
@Crell Crell merged commit 2d63836 into php-fig:master Jun 22, 2026
@rodrigoprimo rodrigoprimo deleted the add-ternary-rule-to-section-6.4-in-migration-guide-3.0 branch June 23, 2026 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants